package com.share.all.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author caifan
 * @created 2021/11/13
 * @description:
 */
@Data
@TableName("city")
public class City implements Serializable {
    @Serial
    private static final long serialVersionUID = -7515132758533162223L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "create_time",
            insertStrategy = FieldStrategy.NOT_NULL,
            updateStrategy = FieldStrategy.NOT_NULL
    )
    private LocalDateTime createTime;

    @TableField(value = "province_id",
            insertStrategy = FieldStrategy.NOT_NULL,
            updateStrategy = FieldStrategy.NOT_NULL
    )
    private Long provinceId;

    @TableField(value = "city_name",
            insertStrategy = FieldStrategy.NOT_NULL,
            updateStrategy = FieldStrategy.NOT_NULL
    )
    private String cityName;

    @TableField(value = "area_name",
            insertStrategy = FieldStrategy.NOT_NULL,
            updateStrategy = FieldStrategy.NOT_NULL
    )
    private String areaName;

    @TableField(value = "description")
    private String description;
}
